package www.openteam.com.contract.policy;

import java.util.List;

import www.openteam.com.bean.ApprovalStatu;
import www.openteam.com.bean.OrderApproval;
import www.openteam.com.bean.UserSpRight;

/**
 * Created by kylin on 2017/1/5.
 */

public class CustomOrderApprovalContract {

    public interface CustomOrderApprovalView {
        //        r(String custorderid, String custid, String orderStatus, long startTime, long endTime, int PageSize);
        String getCustorderid();

        String getCustid();

        String getOrderStatus();

        long getStartTime();

        long getEndTime();

        int getUid();

        int getRid();

        String getStype();

        String getMoreCom();

        int getUserId();

        String getJMark();

        void queryCOASuccess(List<OrderApproval.DataEntity> data);

        void queryCOAFail(String failMsg);

        void approvalCOSuccess(ApprovalStatu aprovalStatu);

        void approvalCOFail(String failMsg);

        void unApprovalCOSuccess(ApprovalStatu aprovalStatu);

        void unApprovalCOFail(String failMsg);

        void checkLAMSuccess(UserSpRight userSpRight);

        void checkLAMFail(String failMsg);
    }

    public interface CustomOrderApprovalPresenter {

        void queryOrder(String custorderid, String custid, String orderStatus,
                        long startTime, long endTime, String stype, String moreCom,
                        int userId, String jMark, int PageSize);

        void unapprovalStatu(int id);

        void approvalStatu(int id);

        void checkLAMStatu(int uid, int rid);
    }


}
